home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
PROGRAMM
/
VISUAL_B
/
2884A.ZIP
/
GETPUT.ZIP
/
GETPUT1.FRM
(
.txt
)
< prev
next >
Wrap
Visual Basic Form
|
1991-08-13
|
3KB
|
80 lines
Form1
"Get/Put" Demo
Form1,
Label1
Picture1:
Label2
Picture2:
Picture1
Picture2
Label3
Picture2.Picture=
Label4
SrcX1
SrcY1
Label5
) - (
SrcX2
SrcY2
Label6
Command1
Picture1.Image
Label7
Label8
GetPutCall
Execute
Command2
LoadPicture()
Label1_Click
Command1_Click
Picture2
Image\
Picture1
Picture
Command2_Click
Command3_Click
BitBlt
SRCCOPY!
Clipboard
Pic_Work
LoadImage
Left'
Width2
Width
Height2
Height
ScaleWidth
ScaleHeight
ScaleLeft
ScaleTop
GetPut
ImgWidth=
ImgHeight
ShDC1a
ShDC)
PutMode
BitBltCtrl_ClickF
SrcX1
SrcY1X
SrcX2
SrcY2
Form_Click
Form_DragOver
Source
State
GetPutCall_Click
Label3_Click
Command1_Click
Command2_Click
works like Cls
GetPut
About as close as you can come to DOS Basic's Get/Put combo.
Source hDC,Destination hDC
Source X1,Y1,X2,Y2
Destination X,Y,
i.e.: Get(SX1,SY1)-(SX2,SY2):Put(DX,DY),PutMode
(1 is added below during subtractions since _width_ & _height_ are needed)
(i.e. if all 4 coords set to 0, width & height need to be 1, not 0)0
GetPutCall_Click
note that the picture hDC's are passed by value and the pictures use Pixel ScaleMode.